import { defineConfig } from "umi";

export default defineConfig({
  hash: true, // 配置是否让生成的文件包含 hash 后缀，通常用于增量发布和避免浏览器加载缓存。
  history: {
    // 配置 history 类型和配置项
    type: "hash", // 可选 browser、hash 和 memory
  },
  routes: [
    { path: "/", component: "@/pages/index" },
    { path: "/about", component: "@/pages/About" },
    { path: "/projects", component: "@/pages/Projects" },
    { path: "/resume", component: "@/pages/Resume" },
    { path: "/cv", component: "@/pages/Resume" },
    { path: "/tool/avatar", component: "@/pages/Tool/Avatar" },
    { path: "/tool/filter", component: "@/pages/Tool/Filter" },

    
  ],
  // base: "./",
  // publicPath: "./",
});
